package com.controller;

import com.model.Classzz;
import com.model.Student;
import com.service.service.ClasszzServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by CHUMI on 2017/7/6.
 */
@Controller
@RequestMapping("/ClasszzController")
public class ClasszzController {
    @Autowired
    ClasszzServiceImpl classzzService;
    @RequestMapping("/selectClasszzId/{id}")
    @ResponseBody
    public List<Student> selectClasszzId(@PathVariable("id") int id){
        return   classzzService.selectClasszzId(id);
    }
}
